#pragma once

#include "stdafx.h"

class TestAssert
{
public:
	TestAssert(void)
	{

	}
	virtual ~TestAssert(void)
	{

	}
	static void failIf(bool shouldFail, std::string message, long lineNumber, std::string filename )
	{
		if ( shouldFail )
		{
			std::cerr << std::endl << message << ":"<< lineNumber << " " << filename << std::ends;
			//abort();
		}
	}
};

#define HANDYTEST_ASSERT(condition) \
	(condition) ? (void)0 : TestAssert::failIf(!(condition), (#condition), __LINE__, __FILE__)
